

import numpy as np
# 排序和搜索
random_data = np.random.randint(0, 100, 10)
print("原始数据:", random_data)
new = np.sort(random_data)
print("排序后:", np.sort(random_data))
print("最小值:", new[0])
print("最小值索引:", np.argmin(random_data))